package com.gali.mall.service;

import com.gali.mall.exception.GaLiException;
import com.gali.mall.model.pojo.User;

import java.util.List;

public interface UserService {
    //用户注册
     void register(User user) throws GaLiException;
    //用户登录
    User login(String username,String password) throws GaLiException;
    //更新签名
    int updateToSignature(Integer id,String signature);
    //管理员登录
    User adminLogin(String name,String password)throws GaLiException;
    //获取全部用户
    List<User> findAll();
}

